package com.weishi.project.training.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import com.weishi.framework.aspectj.lang.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;


/**
 * leaveForm
 */
@Data
@TableName("tbl_leave_form")
public class LeaveForm implements Serializable {
    private static final long serialVersionUID = 1L;

    /** PK */
    private Integer id;
    
    /** 运动员Id */
    @ApiParam(name = "运动员Id")
    private Integer sportsmanId;
    
    /** 请假类型 1、伤病 2、病假 3、事假 */
    @ApiParam(name = "请假类型 1、伤病 2、病假 3、事假")
    private String type;
    
    /** 受伤部位/病因/请假原因 */
    @ApiParam(name = "受伤部位/病因/请假原因")
    private String reason;
    
    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiParam(name = "开始时间")
    private Date startTime;
    
    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiParam(name = "结束时间")
    private Date endTime;
    
    /** 队医 */
    @ApiParam(name = "队医")
    private String teamDoctor;
    
    /** 详情 */
    @ApiParam(name = "详情")
    private String memo;
    
    /** 队医诊断 */
    @ApiParam(name = "队医诊断")
    private String diagnosis;
    
    /** 治愈时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiParam(name = "治愈时间")
    private Date cureTime;
    
    /** 凭证图片,多张图片以,隔开 */
    @ApiParam(name = "凭证图片,多张图片以,隔开")
    private String evidence;
    
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiParam(name = "创建时间")
    private Date ctime;
    
    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiParam(name = "修改时间")
    private Date ltime;

    /**
     * 运动员姓名
     */
    @Excel(name="运动员姓名")
    @TableField(exist = false)
    private String sportsmanName;

    @Excel(name = "当前状态")
    @TableField(exist = false)
    private int nowStatus;

    @Excel(name = "复发次数")
    @TableField(exist = false)
    private int injuryCount;

    @TableField(exist = false)
    private int naturalYearId;

}